import { _decorator, Component, Node, UITransform, Sprite, Animation, SpriteFrame, AnimationClip, animation } from 'cc'
const { ccclass, property } = _decorator


import { StateMchine } from '../../Base/StateMchine'
import { SpikesSubStateMachine } from './SpikesSubStateMachine'

import State from '../../Base/State'
import { SPIKES_COUNT_ENUM,  } from '../../Enums'

const basePath = 'texture/spikes/spikesfour'

export class SpikesFourSubStateMachine extends SpikesSubStateMachine {
  constructor(fsm: StateMchine) {
    super(fsm)

    this.stateMachines.set(SPIKES_COUNT_ENUM.ZERO, new State(fsm, `${basePath}/zero` ))
    this.stateMachines.set(SPIKES_COUNT_ENUM.ONE, new State(fsm, `${basePath}/one`))
    this.stateMachines.set(SPIKES_COUNT_ENUM.TWO, new State(fsm, `${basePath}/two`))
    this.stateMachines.set(SPIKES_COUNT_ENUM.THREE, new State(fsm, `${basePath}/three`))
    this.stateMachines.set(SPIKES_COUNT_ENUM.FOUR, new State(fsm, `${basePath}/four`))
    this.stateMachines.set(SPIKES_COUNT_ENUM.FIVE, new State(fsm, `${basePath}/five`))
  }
}
